package com.ruoyi.web.controller.analysis;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.IMedicalOrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @description: 药品相关分析
 * @author: yxp
 * @create: 2020/08/10
 * @version: 1.0
 */
@RestController
@RequestMapping("/analysis")
@RequiredArgsConstructor(onConstructor_ = @Autowired)

public class MedAnalysis {

	private final IMedicalOrderService medicalOrderService;


	/**
	 * 每日就诊人数 及 每日营收额
	 * @return
	 */
	@GetMapping("/dailyMoCountPrice")
	public AjaxResult getMoPriceAnalysis(){

		List<Map<String, String>> list = medicalOrderService.listDailyMoCountPrice();
		return  AjaxResult.success(list);
	}

}
